package com.neusoft.cmsprojects.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TbProduct entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_product", catalog = "cms")
public class TbProduct implements java.io.Serializable {

	// Fields

	private Integer CId;
	private String CName;
	private String CNamee;
	private String CIntro;
	private String CIntroe;
	private byte[] CDescription;
	private byte[] CDescriptione;
	private String CPic1;
	private String CPic2;
	private String CPicmin;
	private String CPrice;
	private String CCode;
	private Integer CSortbid;
	private Integer CCreator;
	private Date CCreatetime;
	private Integer CModifier;
	private Date CModifytime;

	// Constructors

	/** default constructor */
	public TbProduct() {
	}

	/** full constructor */
	public TbProduct(String CName, String CNamee, String CIntro,
			String CIntroe, byte[] CDescription, byte[] CDescriptione,
			String CPic1, String CPic2, String CPicmin, String CPrice,
			String CCode, Integer CSortbid, Integer CCreator, Date CCreatetime,
			Integer CModifier, Date CModifytime) {
		this.CName = CName;
		this.CNamee = CNamee;
		this.CIntro = CIntro;
		this.CIntroe = CIntroe;
		this.CDescription = CDescription;
		this.CDescriptione = CDescriptione;
		this.CPic1 = CPic1;
		this.CPic2 = CPic2;
		this.CPicmin = CPicmin;
		this.CPrice = CPrice;
		this.CCode = CCode;
		this.CSortbid = CSortbid;
		this.CCreator = CCreator;
		this.CCreatetime = CCreatetime;
		this.CModifier = CModifier;
		this.CModifytime = CModifytime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "c_id", unique = true, nullable = false)
	public Integer getCId() {
		return this.CId;
	}

	public void setCId(Integer CId) {
		this.CId = CId;
	}

	@Column(name = "c_name", length = 256)
	public String getCName() {
		return this.CName;
	}

	public void setCName(String CName) {
		this.CName = CName;
	}

	@Column(name = "c_namee", length = 256)
	public String getCNamee() {
		return this.CNamee;
	}

	public void setCNamee(String CNamee) {
		this.CNamee = CNamee;
	}

	@Column(name = "c_intro", length = 2048)
	public String getCIntro() {
		return this.CIntro;
	}

	public void setCIntro(String CIntro) {
		this.CIntro = CIntro;
	}

	@Column(name = "c_introe", length = 2048)
	public String getCIntroe() {
		return this.CIntroe;
	}

	public void setCIntroe(String CIntroe) {
		this.CIntroe = CIntroe;
	}

	@Column(name = "c_description")
	public byte[] getCDescription() {
		return this.CDescription;
	}

	public void setCDescription(byte[] CDescription) {
		this.CDescription = CDescription;
	}

	@Column(name = "c_descriptione")
	public byte[] getCDescriptione() {
		return this.CDescriptione;
	}

	public void setCDescriptione(byte[] CDescriptione) {
		this.CDescriptione = CDescriptione;
	}

	@Column(name = "c_pic1", length = 256)
	public String getCPic1() {
		return this.CPic1;
	}

	public void setCPic1(String CPic1) {
		this.CPic1 = CPic1;
	}

	@Column(name = "c_pic2", length = 256)
	public String getCPic2() {
		return this.CPic2;
	}

	public void setCPic2(String CPic2) {
		this.CPic2 = CPic2;
	}

	@Column(name = "c_picmin", length = 256)
	public String getCPicmin() {
		return this.CPicmin;
	}

	public void setCPicmin(String CPicmin) {
		this.CPicmin = CPicmin;
	}

	@Column(name = "c_price", length = 32)
	public String getCPrice() {
		return this.CPrice;
	}

	public void setCPrice(String CPrice) {
		this.CPrice = CPrice;
	}

	@Column(name = "c_code", length = 64)
	public String getCCode() {
		return this.CCode;
	}

	public void setCCode(String CCode) {
		this.CCode = CCode;
	}

	@Column(name = "c_sortbid")
	public Integer getCSortbid() {
		return this.CSortbid;
	}

	public void setCSortbid(Integer CSortbid) {
		this.CSortbid = CSortbid;
	}

	@Column(name = "c_creator")
	public Integer getCCreator() {
		return this.CCreator;
	}

	public void setCCreator(Integer CCreator) {
		this.CCreator = CCreator;
	}

	@Column(name = "c_createtime", length = 0)
	public Date getCCreatetime() {
		return this.CCreatetime;
	}

	public void setCCreatetime(Date CCreatetime) {
		this.CCreatetime = CCreatetime;
	}

	@Column(name = "c_modifier")
	public Integer getCModifier() {
		return this.CModifier;
	}

	public void setCModifier(Integer CModifier) {
		this.CModifier = CModifier;
	}

	@Column(name = "c_modifytime", length = 0)
	public Date getCModifytime() {
		return this.CModifytime;
	}

	public void setCModifytime(Date CModifytime) {
		this.CModifytime = CModifytime;
	}

}